package com.zky.basic.query;

import lombok.Data;

@Data
public class BaseQuery {
    //当前页数
    private Integer currentPage = 1;
    //当前页数量
    private Integer pageSize = 5;
    //当前页起始下标
    public Integer getBegin() {
        return (this.currentPage-1)*this.pageSize;
    }

    //高级查询的参数
    private String keyword;
}
